package com.peas.platform.module.icims.budget.ysy.adapter.repository.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 预算域配置
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_budget_ysy_config`")
public class BudgetYsyConfigPo extends BasePo {

    // 系统地址
    @Comment(value = "系统地址")
    @Size(max = 100, message = "系统地址不能超过100个字符")
    @TableField(value = "`address`", jdbcType = JdbcType.VARCHAR)
    private String address;

    // 系统端口
    @Comment(value = "系统端口")
    @Size(max = 6, message = "系统端口不能超过6个字符")
    @TableField(value = "`port`", jdbcType = JdbcType.VARCHAR)
    private String port;

    // 登录url
    @Comment(value = "登录url")
    @Size(max = 300, message = "登录url不能超过300个字符")
    @TableField(value = "`login`", jdbcType = JdbcType.VARCHAR)
    private String login;

    // 用户名
    @Comment(value = "用户名")
    @Size(max = 100, message = "用户名不能超过100个字符")
    @TableField(value = "`username`", jdbcType = JdbcType.VARCHAR)
    private String username;

    // 密码
    @Comment(value = "密码")
    @Size(max = 500, message = "密码不能超过500个字符")
    @TableField(value = "`password`", jdbcType = JdbcType.VARCHAR)
    private String password;

}
